﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace OnlineLearningSystem.Model
{
    /// <summary>
    /// 学习进度表
    /// </summary>
    public class LearningSituation :EntityBase
    {
        /// <summary>
        /// 视频进度
        /// </summary>
        [Display(Name = "视频进度")]
        public string times { get; set; }

        /// <summary>
        /// 测试答案
        /// </summary>
        [Display(Name = "测试答案")]
        public string answer { get; set; }

        /// <summary>
        /// 测试分数
        /// </summary>
        [Display(Name = "测试分数")]
        public float score { get; set; }

        /// <summary>
        /// 枚举状态0=="结束"，1=="待完成"
        /// </summary>
        [Display(Name = "状态")]
        public int state { get; set; }

        /// <summary>
        /// 一个学习进度对应一个用户
        /// </summary>
        public virtual User user { get; set; }

        /// <summary>
        /// 一个学习进度对应一个课程
        /// </summary>
        public virtual Course cours { get; set; }
    }
}
